import http from "../utils/request"

// 书架列表
export function getBookShelfList(header){
    return http.request({
        url:'/user/bookShelfList',
        method:'post',
        header
    })
}

// 添加
export function addBookToShelf(header,data){
    return http.request({
        url:'/user/addBookShelf',
        method:'post',
        header,
		data
    })
}

// 移除
export function delBookFromShelf(header,data){
    return http.request({
        url:'/user/delBookShelf',
        method:'post',
        header,
		data
    })
}

// 更新
export function updateBookShelfList(header,data){
    return http.request({
        url:'/user/saveBookShelf',
        method:'post',
        header,
		data
    })
}
